package com.zp.qualitypractice.Bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;

import java.io.Serializable;

/**
 * Created by izp on 2017/5/22.
 */
@Keep
public class Employee implements Parcelable,Serializable {
    /**
     * user_mobile : 15736096668
     * user_parentname : null
     * user_id : 177
     * user_parent : null
     * user_nickname : vicky
     * user_role : null
     */

    private String user_mobile;
    private String user_parentname;
    private int user_id;
    private String user_parent;
    private String user_nickname;
    private String user_role;

    public String getUser_mobile() {
        return user_mobile;
    }

    public Employee setUser_mobile(String user_mobile) {
        this.user_mobile = user_mobile;
        return this;
    }

    public String getUser_parentname() {
        return user_parentname;
    }

    public Employee setUser_parentname(String user_parentname) {
        this.user_parentname = user_parentname;
        return this;
    }

    public int getUser_id() {
        return user_id;
    }

    public Employee setUser_id(int user_id) {
        this.user_id = user_id;
        return this;
    }

    public String getUser_parent() {
        return user_parent;
    }

    public Employee setUser_parent(String user_parent) {
        this.user_parent = user_parent;
        return this;
    }

    public String getUser_nickname() {
        return user_nickname;
    }

    public Employee setUser_nickname(String user_nickname) {
        this.user_nickname = user_nickname;
        return this;
    }

    public String getUser_role() {
        return user_role;
    }

    public Employee setUser_role(String user_role) {
        this.user_role = user_role;
        return this;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.user_mobile);
        dest.writeString(this.user_parentname);
        dest.writeInt(this.user_id);
        dest.writeString(this.user_parent);
        dest.writeString(this.user_nickname);
        dest.writeString(this.user_role);
    }

    public Employee() {
    }

    protected Employee(Parcel in) {
        this.user_mobile = in.readString();
        this.user_parentname = in.readString();
        this.user_id = in.readInt();
        this.user_parent = in.readString();
        this.user_nickname = in.readString();
        this.user_role = in.readString();
    }

    public static final Creator<Employee> CREATOR = new Creator<Employee>() {
        public Employee createFromParcel(Parcel source) {
            return new Employee(source);
        }

        public Employee[] newArray(int size) {
            return new Employee[size];
        }
    };
}
